package com.c.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


/**
 * @author wangxiangli
 * @create 2022-12-31-12:14
 */
@Data
@TableName("t_order")
@Accessors(chain = true)
public class Order implements Serializable {
    public static final String ORDERTYPE_TELEPHONE = "线下预约";
    public static final String ORDERTYPE_WEIXIN = "线上预约";
    public static final String ORDERSTATUS_YES = "已到诊";
    public static final String ORDERSTATUS_NO = "未到诊";
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("member_id")
    private Integer memberId;//会员id
    @TableField("orderDate")
    private Date orderDate;//预约日期
    @TableField("orderType")
    private String orderType;//预约类型 电话预约/线上预约
    @TableField("orderStatus")
    private String orderStatus;//预约状态（是否到诊）
    @TableField("setmeal_id")
    private Integer setmealId;//体检套餐id
    @TableField("address_id")
    private Integer addressId;//预约地址id
    public Order() {
    }

    public Order(Integer id) {
        this.id = id;
    }

    public Order(Integer memberId, Date orderDate,Integer setmealId) {
        this.memberId = memberId;
        this.orderDate = orderDate;
        this.setmealId = setmealId;
    }

    public Order(Integer memberId, Date orderDate, Integer setmealId, Integer addressId) {
        this.memberId = memberId;
        this.orderDate = orderDate;
        this.setmealId = setmealId;
        this.addressId = addressId;
    }

    public Order(Integer memberId, Date orderDate, String orderType, String orderStatus, Integer setmealId) {
        this.memberId = memberId;
        this.orderDate = orderDate;
        this.orderType = orderType;
        this.orderStatus = orderStatus;
        this.setmealId = setmealId;
    }

    public Order(Integer id, Integer memberId, Date orderDate, String orderType, String orderStatus, Integer setmealId) {
        this.id = id;
        this.memberId = memberId;
        this.orderDate = orderDate;
        this.orderType = orderType;
        this.orderStatus = orderStatus;
        this.setmealId = setmealId;
    }

}
